package com.weacar.weixin.service;

import com.weacar.weixin.model.User;

import java.util.Optional;

/**
 * @author Fong
 */
public interface UserService {
    User subscribe(String fromUserName) throws Exception;

    void unsubscribe(String fromUserName) throws Exception;

    Optional<User> getUser(String fromUserName);

    void resubscribe(User user);
}
